package com.cloudservice.ccs.mapper;

import com.cloudservice.ccs.entity.SessionMessage;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface SessionMessageMapper {
    int save(SessionMessage sessionMessage);

    int update(Integer id, SessionMessage sessionMessage);

    int partialUpdate(Integer id, Map<String, Object> fields);

    int delete(Integer id);

    SessionMessage getOne(Integer id);

    List<SessionMessage> getAll();

    List<SessionMessage> getAllInSession(Integer sessionId);

    List<SessionMessage> getPreviousInSession(Integer sessionId, Integer id);
}
